using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UpgradeRecklessMovement:Upgrade {
	protected override void SubscribeEvents() {
		base.SubscribeEvents();
		MobEventHelper.updateStat.SubscribeSingle(weaponWeapon.owner,Mob_UpdateStat);
	}
	public override void UnsubscribeEvents() {
		base.UnsubscribeEvents();
		MobEventHelper.updateStat.UnsubscribeSingle(weaponWeapon.owner,Mob_UpdateStat);
	}

	void Mob_UpdateStat(object sender,object e) {
		if(weaponWeapon.currentClip.content.Count!=0) return;
		weaponWeapon.owner.speed*=1.7f;
		weaponWeapon.owner.ChangeLocalTimeScale(0.7f);
	}

}
